import { createStore, applyMiddleware } from 'redux'
import { combineReducers } from 'redux-immutable'
import thunk from 'redux-thunk'

import app from './modules/app'
import user from './modules/user'

// 定义状态管理器
const reducer = combineReducers({
  app,user
})

// 创建状态管理器
const store = createStore(reducer, applyMiddleware(thunk))

export default store